#ifndef MATHHELPER_H
#define MATHHELPER_H
#define _USE_MATH_DEFINES
#include <cmath>

namespace FsxWsUtils {

//! Math helper methods, mainly static methods
class MathHelper
{
public:
    //! Radian to degree.
    /*! \param radian
        \return degree */
    static double radianToDegree(const double radian);
    //! Degree to radian.
    /*! \param degree
        \return radian */
    static double degreeToRadian(const double degree);
    //! Inches hg to mb.
    /*! \param inchesHg
        \return millibars */
    static double inchesHgToMillibars(const double inchesHg);
    //! Mb to hg.
    /*! \param millibars
        \return inchesHg */
    static double millibarsToInchesHg(const double millibars);
    //! Meter to feet.
    /*! \param meters
        \return feet */
    static double meterToFeet(const double meters);
    //! Feet to meter.
    /*! \param feet
        \return meters */
    static double feetToMeters(const double feet);
    //! Pitch (rad) to KML tilt degrees.
    /*! \param pitchRad
        \return degree */
    static double pitchRadToKmlTiltDeg(const double pitchRad);
};
}
#endif // MATHHELPER_H
